﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using hydratingDLL;

namespace hydratingConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            var Model = new HydrateGeneric<MyModel>();
            Model.AddNewProperty("OneProp", "bb");
            Model.AddNewProperty("newData.StartDate", DateTime.Now.AddDays(1).ToString());
            Model.AddNewProperty("newData.SecondProp", "AB");
            Model.AddNewProperty("newData.aOne.ThirdProp", "XXX");
            
            var data = Model.NewObject();
            Console.WriteLine(data.newData.SecondProp);
            Console.WriteLine(data.newData.StartDate);
            Console.WriteLine(data.newData.aOne.ThirdProp);

            Console.WriteLine("if you see various data, all is well");
            Console.ReadKey();
        }
    }
}
